<style media="print" type="text/css">
  .noprint {
    display: none;
  }
</style>
<div>
  <div class="main-title noprint">
    <h2>新增清单</h2>
  </div>
  <div class="main-section">
    <form method="POST" action="{:url('saveBill')}" class="j-form">
      <ul class="form-group form-inline">
        <li>
          <input type="text" class="form-control" name="house_property_name" value="{$properyt_name}"
            data-toggle="tooltip" data-placement="top" required readonly>
          <label class="control-label">房产</label>
        </li>
        <li>
          <select name="house_number_id" class="form-control" style="min-width: 196px;">
            <option value="0">未选择</option>
            {foreach $number_data as $v}
            <option value="{$v.id}" {if $v.id===$data.house_number_id}selected{/if}>{$v.name}</option>
            {/foreach}
          </select>
          <label>房产</label>
        </li>
        <li>
          <input type="text" class="form-control" name="start_time" value="{$data.start_time}" 
            data-toggle="tooltip" data-placement="top" required>
          <label>时间</label>
        </li>
        <li>
          <input type="text" class="form-control" name="other_charges" value="{$data.other_charges}"
            data-toggle="tooltip" data-placement="top" required>
          <label>其他费用</label>
        </li>
        <li>
          <input type="text" class="form-control" name="note" value="{$data.note}" data-toggle="tooltip"
            data-placement="top" required>
          <label>备注</label>
        </li>
        <li>
          <input type="hidden" name="house_property_id" value="{$data.house_property_id}">
          <input type="submit" value="提交表单" class="btn btn-primary">
          <a href="{:url('index', ['house_property_id' => $data.house_property_id])}" class="btn btn-default">返回列表</a>
        </li>
      </ul>
    </form>
  </div>
</div>

<script>
  main.ajaxForm('.j-form', function () {
    main.content("{:url('index', ['house_property_id' => $house_property_id])}");
  });
  $('[data-toggle="tooltip"]').tooltip();
</script>